const _import = require('./_import_' + process.env.NODE_ENV)
import Layout from '../views/layout/Layout'
export default [
  // =================用户中心======================
  {
    path: '/userList',
    component: Layout,
    redirect: '/userList/index',
    children: [{
      path: '/userList/index',
      component: _import('userCenter/userList/index'),
      name: 'userList',
      meta: { title: '用户中心-用户列表' }
    }]
  },
  {
    path: '/userContace',
    component: Layout,
    redirect: '/userContace/index',
    children: [{
      path: '/userContace/index',
      component: _import('userCenter/contact/index'),
      name: 'userContace',
      meta: { title: '用户中心-联系方式' }
    }]
  },
  {
    path: '/userComment',
    component: Layout,
    redirect: '/userComment/index',
    children: [{
      path: '/userComment/index',
      component: _import('userCenter/comment/index'),
      name: 'userComment',
      meta: { title: '用户评论' }
    }, {
      path: '/userComment/recycle',
      component: _import('userCenter/comment/recycle'),
      name: 'userCommentRecycle',
      meta: { title: '用户评论回收站' }
    }, {
      path: '/userComment/black',
      component: _import('userCenter/comment/black'),
      name: 'userCommentBlack',
      meta: { title: '用户评论黑名单' }
    }, {
      path: '/userComment/user/:id',
      component: _import('userCenter/comment/user'),
      name: 'userCommentUser',
      meta: { title: '用户评论明细' }
    }]
  },
  {
    path: '/userAvatar',
    component: Layout,
    redirect: '/userAvatar/index',
    children: [{
      path: '/userAvatar/index',
      component: _import('userCenter/uploadAvatar/index'),
      name: 'userAvatar',
      meta: { title: '用户中心-默认头像' }
    }]
  },
  {
    path: 'userNotice',
    component: Layout,
    redirect: '/userNotice/index',
    children: [{
      path: '/userNotice/index',
      component: _import('userCenter/notice/index'),
      name: 'userNotice',
      meta: { title: '用户中心-消息通知' }
    }]
  },
  {
    path: '/userNavBar',
    component: Layout,
    redirect: '/userNavBar/index',
    children: [{
      path: '/userNavBar/index',
      component: _import('userCenter/navBar/index'),
      name: 'userNavBar',
      meta: { title: '用户中心-导航栏管理' }
    }]
  },
  {
    path: '/userAuditCert',
    component: Layout,
    redirect: '/userAuditCert/index',
    children: [{
      path: '/userAuditCert/index',
      component: _import('userCenter/auditCert/index'),
      name: 'userAuditCert',
      meta: { title: '用户中心-认证审核' }
    }]
  },
  {
    path: '/userAuditExpert',
    component: Layout,
    redirect: '/userAuditExpert/index',
    children: [{
      path: '/userAuditExpert/index',
      component: _import('userCenter/auditExpert/index'),
      name: 'userAuditExpert',
      meta: { title: '用户中心-专家审核' }
    }]
  },
  {
    path: '/userAuditOrgs',
    component: Layout,
    redirect: '/userAuditOrgs/index',
    children: [{
      path: '/userAuditOrgs/index',
      component: _import('userCenter/auditOrgs/index'),
      name: 'userAuditOrgs',
      meta: { title: '用户中心-机构审核' }
    }]
  },
  {
    path: '/userFieldManagement',
    component: Layout,
    redirect: '/userFieldManagement/index',
    children: [{
      path: '/userFieldManagement/index',
      component: _import('userCenter/fieldManagement/index'),
      name: 'userFieldManagement',
      meta: { title: '用户中心-领域管理' }
    }]
  },
  {
    path: '/userTagManagement',
    component: Layout,
    redirect: '/userTagManagement/index',
    children: [{
      path: '/userTagManagement/index',
      component: _import('userCenter/tagManagement/index'),
      name: 'userTagManagement',
      meta: { title: '用户中心-标签管理' }
    }]
  }
]
